﻿<phone:PhoneApplicationPage 
    x:Class="BaicaiTianqi.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="800" 
    xmlns:my="clr-namespace:BaicaiTianqi.View"  
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait"  Orientation="Portrait"
    shell:SystemTray.IsVisible="False">

    <!--LayoutRoot 是包含所有页面内容的根网格-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <my:BackTileImage HorizontalAlignment="Left" Margin="0,0,0,0" x:Name="backTileImage1" VerticalAlignment="Top" Width="173" Height="173" />
        <!--Panorama 控件-->
        <controls:Panorama Visibility="Visible" Name="mainPanorama">
            <controls:Panorama.Background>
                <ImageBrush ImageSource="PanoramaBackground.png"/>
            </controls:Panorama.Background>
            <!--Panorama 项目一-->
            <controls:PanoramaItem Margin="0,50,0,0">
                <controls:PanoramaItem.Header>
                    <TextBlock Text=""  FontSize="83"  FontFamily="DengXian" FontWeight="Bold" x:Name="today" Foreground="White" />
                </controls:PanoramaItem.Header>
                <Grid Margin="0,-50,0,0">
                    <Image Height="400" HorizontalAlignment="Left" Margin="-2,0,0,0" Name="Imagetoday" Stretch="Fill" VerticalAlignment="Top" Width="400" Source="/WeatherLogo/example.png" />
                    <TextBlock Height="50" HorizontalAlignment="Left" Margin="35,380,0,0" Name="Condition" Text="" VerticalAlignment="Top" Width="361" FontSize="40" FontFamily="DengXian" FontWeight="Bold" Foreground="White" TextAlignment="Left" />
                    <TextBlock Height="50" HorizontalAlignment="Left" Margin="35,440,0,0" Name="Temp" Text="" Width="361" VerticalAlignment="Top"  FontSize="34" FontFamily="DengXian" FontWeight="Bold" Foreground="White" />
                    <!--<TextBlock FontSize="24" Height="30" HorizontalAlignment="Left" Margin="30,405,0,0" Name="Humidity" Text="" VerticalAlignment="Top" Width="361" FontFamily="DengXian" FontWeight="Bold" Foreground="White" />
                    <TextBlock FontSize="24" Height="30" HorizontalAlignment="Left" Margin="30,441,0,0" Name="WindCondition" Text="" VerticalAlignment="Top" Width="361" FontFamily="DengXian" FontWeight="Bold" Foreground="White" />-->
                    <TextBlock FontSize="34" Height="50" HorizontalAlignment="Left" Margin="35,500,0,0" Name="Date" Text="" VerticalAlignment="Top" Width="361" FontFamily="DengXian" FontWeight="Bold" Foreground="White" />
                </Grid>
            </controls:PanoramaItem>

            <!--Panorama 项目二-->
            <controls:PanoramaItem Margin="0,50,0,0">
                <controls:PanoramaItem.Header>
                    <TextBlock Text="天气变化"  FontSize="83"  FontFamily="DengXian" FontWeight="Bold" x:Name="next" Foreground="White" />
                </controls:PanoramaItem.Header>
                <Grid>
                    <Line X1="142" X2="142" Y1="20" Y2="300" Stroke="Gray" Opacity="0.5" />
                    <Line X1="272" X2="272" Y1="20" Y2="300" Stroke="Gray" Opacity="0.5" />

                    <Line X1="6" Y1="120" X2="6" Y2="330" Stroke="White" Opacity="1" StrokeThickness="3" />
                    <Line X1="6" Y1="120" X2="2" Y2="130" Stroke="White" Opacity="1" StrokeThickness="3" />
                    <Line X1="6" Y1="120" X2="10" Y2="130" Stroke="White" Opacity="1" StrokeThickness="3" />

                    <Line X1="2" Y1="326" X2="392" Y2="326" Stroke="White" Opacity="1" StrokeThickness="3"  />
                    <Line X1="392" Y1="326" X2="382" Y2="322" Stroke="White" Opacity="1" StrokeThickness="3"  />
                    <Line X1="392" Y1="326" X2="382" Y2="330" Stroke="White" Opacity="1" StrokeThickness="3"  />

                    <Polyline Points="1 230,401 230" Stroke="White" StrokeDashArray="3" Opacity="0.5" />

                    <Line X1="15" Y1="150" X2="35" Y2="150" Stroke="Lime" Opacity="1" StrokeThickness="2"  />
                    <Line X1="15" Y1="180" X2="35" Y2="180" Stroke="Blue" Opacity="1" StrokeThickness="2"  />

                    <Line Name="TopLine01" X1="37" Y1="230" X2="142" Y2="230" Stroke="Lime" Opacity="1" StrokeThickness="3"  />
                    <Line Name="TopLine12" X1="142" Y1="230" X2="272" Y2="230" Stroke="Lime" Opacity="1" StrokeThickness="3"  />
                    <Line Name="TopLine23" X1="272" Y1="230" X2="382" Y2="230" Stroke="Lime" Opacity="1" StrokeThickness="3"  />

                    <Line Name="LowLine01" X1="37" Y1="230" X2="147" Y2="230" Stroke="Blue" Opacity="1" StrokeThickness="3"  />
                    <Line Name="LowLine12" X1="142" Y1="230" X2="272" Y2="230" Stroke="Blue" Opacity="1" StrokeThickness="3"  />
                    <Line Name="LowLine23" X1="272" Y1="230" X2="382" Y2="230" Stroke="Blue" Opacity="1" StrokeThickness="3"  />

                    <TextBlock Height="15" HorizontalAlignment="Left" Margin="12,221,0,0" Name="textBlock1" Text="0 ℃" VerticalAlignment="Top" Width="30" FontSize="12" Foreground="White" />
                    <TextBlock FontSize="14" Foreground="White" Height="20" HorizontalAlignment="Left" Margin="64,330,0,0" Name="textBlock3" Text="明天" VerticalAlignment="Top" />
                    <TextBlock FontSize="14" Foreground="White" Height="20" HorizontalAlignment="Left" Margin="187,330,0,0" Name="textBlock4" Text="后天" VerticalAlignment="Top" />
                    <TextBlock FontSize="14" Foreground="White" Height="20" HorizontalAlignment="Left" Margin="310,330,0,0" Name="textBlock5" Text="大后天" VerticalAlignment="Top" />

                    <Image Height="100" HorizontalAlignment="Left" Margin="26,-12,0,0" Name="image1" Stretch="Fill" VerticalAlignment="Top" Width="100" />
                    <Image Height="100" HorizontalAlignment="Left" Margin="156,-12,0,0" Name="image2" Stretch="Fill" VerticalAlignment="Top" Width="100" />
                    <Image Height="100" HorizontalAlignment="Left" Margin="286,-12,0,0" Name="image3" Stretch="Fill" VerticalAlignment="Top" Width="100" />
                    <TextBlock Height="40" HorizontalAlignment="Left" Margin="26,71,0,0" Name="TextBlock1" Text="" VerticalAlignment="Top" Width="100" Foreground="White" TextAlignment="Center" FontSize="15" TextWrapping="Wrap" />
                    <TextBlock Height="40" HorizontalAlignment="Left" Margin="156,71,0,0" Name="TextBlock2" Text="" VerticalAlignment="Top" Width="100" Foreground="White" TextAlignment="Center" FontSize="15" TextWrapping="Wrap" />
                    <TextBlock Height="40" HorizontalAlignment="Left" Margin="286,71,0,0" Name="TextBlock3" Text="" VerticalAlignment="Top" Width="100" Foreground="White" TextAlignment="Center" FontSize="15" TextWrapping="Wrap" />
                    <TextBlock FontSize="12" Foreground="White" Height="18" HorizontalAlignment="Left" Margin="23,180,0,0" Name="textBlock7" Text="夜" VerticalAlignment="Top" />
                    <TextBlock FontSize="12" Foreground="White" Height="18" HorizontalAlignment="Left" Margin="23,150,0,0" Name="textBlock8" Text="日" VerticalAlignment="Top" />
                    <TextBlock Foreground="White" Height="28" HorizontalAlignment="Left" Margin="27,352,0,0" Name="textBlock6" Text="未来三天天气变化和温度变化曲线。" VerticalAlignment="Top" Width="360" FontSize="18" TextAlignment="Left" />
                    <TextBlock Height="235" Foreground="White" HorizontalAlignment="Left" Margin="13,394,0,0" Name="tbjianyi" Text="" VerticalAlignment="Top" Width="407" TextWrapping="Wrap" />
                </Grid>
            </controls:PanoramaItem>
        </controls:Panorama>
        <Grid VerticalAlignment="Top" Height="50">
            <TextBlock Margin="10,0,0,0" Foreground="White" Text="白菜天气" FontSize="36" />
        </Grid>
        <toolkit:PerformanceProgressBar Visibility="Collapsed" Name="mainProgressBar" Background="Transparent" VerticalAlignment="Center" Foreground="White" IsIndeterminate="True" />
    </Grid>

    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True" BackgroundColor="Black" Opacity="0.5" ForegroundColor="White">
            <shell:ApplicationBarIconButton IconUri="/ApplicationBarIcon/site.png" Text="城市设置" Click="CitySet_Click" />
            <shell:ApplicationBarIconButton IconUri="/ApplicationBarIcon/pin.png" Text="钉到主页" Click="PinStart_Click" />
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>
</phone:PhoneApplicationPage>